﻿--[[
   @brief    descprtion
   @author   vincentlao
   @version  1.0
   @date     2015-07-9
--]]

friend_list_desc = 
{
    module_name = "friend_list",
    events = 
    {
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_LIST,
                    callback = "friend_list_control.get_friendlist_done"
                },                
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_UNREAD_MESSAGE_COUNT,
                    callback = "friend_list_control.on_get_friendlist_unread_msg_count"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_RECOMMEND_FRIEND,
                    callback = "friend_list_control.get_recommend_friend_done"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_ADD_FRIEND,
                    callback = "friend_list_control.add_friend_done"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_DELETE_FRIEND,
                    callback = "friend_list_control.on_delete_friend"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_ADD_FRIEND_ACCEPTED,
                    callback = "friend_list_control.on_add_friend_accepted"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_ADD_FRIEND_ACCEPTING,
                    callback = "friend_list_control.on_add_friend_accepting"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECVIE_FRIEND_REPORT,
                    callback = "friend_list_control.on_recv_friend_report"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_MY_SOCIAL_TEST_INFO,
                    callback = "friend_list_control.on_get_my_social_test_info"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_IM_INITED,
                    callback = "friend_list_control.on_im_inited"
                },
            },
            lua_event = 
            {
                {
                    id = group_event.SHOW_FRIEND_LIST,
                    callback = "friend_list_control.show"
                },
                {
                    id = group_event.FRIEND_CLEAR_MESSAGE,
                    callback = "friend_list_control.on_friend_clear_message"
                },
                {
                    id = group_event.FRIEND_NEW_MESSAGE_COME,
                    callback = "friend_list_control.on_friend_new_message_come"
                },
                {
                    id  = mainframe_event.CHANGE_MAINFRAME_MODE,
                    callback = "friend_list_control.on_mini_mode_load_finish"
                },
                {
                    id  = mainframe_event.CHANGE_MAINFRAME_MODE,
                    callback = "friend_vlist_control.on_mode_load_change"
                },
                {
                    id = "group_event.SHOW_MSG_BOX_NOTIFY_REDDOT",
                    callback = "friend_list_control.show_msg_box_notify_reddot"
                },
                {
                    id = "group_event.CLEAR_MSG_BOX_NOTIFY_REDDOT",
                    callback = "friend_list_control.clear_msg_box_notify_reddot"
                },
                {
                    id = "group_event.OTHER_MODULE_GET_FRIEND_LIST",
                    callback = "friend_list_control.on_get_friend_list"
                },
                {
                    id = group_event.UPDATE_FRIEND_REMARKS,
                    callback = "friend_list_control.on_update_friend_remark"
                },
            },
            
            lua_file = "social\\friend_list\\control.lua"
        },
        {
            c_event = 
            {
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_IM_INITED,
                    callback = "friend_search_menu_listener.on_im_inited"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_HISTORY_QQ_FRIEND,
                    callback = "friend_search_menu_listener.on_get_history_qq_friend_list"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_QQ_FRIEND,
                    callback = "friend_search_menu_listener.on_get_qq_friend_list"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_SEARCH_FRIEND_REDDOT_STATUS,
                    callback = "friend_search_menu_listener.on_get_search_friend_reddot_status"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_LIST,
                    callback = "friend_search_menu_listener.on_get_tgp_friend_list_done"
                }, 
            },
            lua_event = 
            {
                {
                    id = group_event.SHOW_FRIEND_SEARCH_MENU,
                    callback = "friend_search_menu_listener.show_menu"
                }
            },
            lua_file = "social\\friend_list\\friend_search_menu.lua"
        },
        {
            listen_broadcast = 
            {
                {
                    id = 'im_app_broadcast_on_get_game_friend',
                    callback = "friend_search_menu_listener.on_get_game_friend"
                },
                {
                    id = 'i_service_friend_guide_click_on_find_qq_friend',
                    callback = "friend_search_menu_listener.click_on_find_qq_friend"
                },
                {
                    id = 'i_service_friend_guide_click_on_find_new_friend',
                    callback = "friend_search_menu_listener.click_on_find_new_friend"
                },
                {
                    id = 'i_service_friend_guide_click_on_find_game_friend',
                    callback = "friend_search_menu_listener.click_on_find_game_friend"
                }
            },
            lua_file = "social\\friend_list\\friend_search_menu.lua"
        },
        {
            listen_broadcast =
            {
                {
                    id = 'i_broadcast_social_info_center_on_user_info_changed',
                    callback = 'friend_list_control.on_user_info_changed'
                },
                {
                    id = 'i_service_lol_game_status_changed',
                    callback = "friend_list_control.on_lol_game_staus_changed"
                },
                {
                    id = 'i_service_lol_game_status_changed',
                    callback = "friend_vlist_control.on_lol_game_staus_changed"
                },
                {
                    id = "i_broadcast_social_title_mainbtn_clicked",
                    callback = "friend_list_control.on_title_mainbtn_clicked"
                },
                {
                    id = "i_broadcast_social_mainwnd_show",
                    callback = "friend_list_control.on_mainwnd_show"
                },
                {
                    id = "i_broadcast_social_group_on_new_msg",
                    callback = "friend_list_control.on_group_new_msg"
                },
                {
                    id = "i_remote_service_get_friend_list",
                    callback = "friend_list_control.on_remote_service_get_friend_list"
                },
                --[[{
                    id = "i_service_get_friend_list_detail",
                    callback = "friend_list_control.on_service_get_friend_list_detail"
                },]]--
            },
            reg_service =
            {
                {
                    id = 'i_service_social_network_get_title_ui_data',
                    callback = 'friend_list_control.on_get_title_ui_data'
                },
                {
                    id = 'i_service_social_get_social_friend_list',
                    callback = 'friend_list_control.get_friend_list'
                },
                {
                    id = 'i_service_social_re_sort_friend_list',
                    callback = 'friend_list_control.re_sort_friend_list'
                },
            },
            lua_file = "social\\friend_list\\control.lua"
        }
    }
}

desc_mgr.add(friend_list_desc)
